const ROLE_API = {
    // 查询所有角色列表
    list: {
        method: 'get',
        url: '/role/list',
    },
    // 增加或更新
    save: {
        method: 'post',
        url: '/role'
    },
    // 删除
    delete: {
        method: 'delete',
        url: '/role'
    },
    // 回收所有权限
    revokeAll :{
        method: 'get',
        url: '/role-resource/revoke-all'
    },
    // 给角色授权
    grant: {
        method: 'post',
        url: '/role-resource/grant'
    }
}

export default ROLE_API